﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Course.cs" company="HelloWorld">
//   BY黄媛媛
// </copyright>
// <summary>
//   Defines the Course type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace WindowsFormsApp2.Model
{
    using System.Collections.Generic;
    using System.Diagnostics.CodeAnalysis;

    /// <summary>
    /// The course.
    /// </summary>
    internal class Course
    {
        /// <summary>
        /// The courses.
        /// </summary>
        [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401:FieldsMustBePrivate", Justification = "Reviewed. Suppression is OK here.")]
        public static List<Course> Courses = new List<Course>();

        /// <summary>
        /// Initializes a new instance of the <see cref="Course"/> class.
        /// </summary>
        /// <param name="courseId">
        /// The course id.
        /// </param>
        /// <param name="name">
        /// The name.
        /// </param>
        /// <param name="weekday">
        /// The weekday.
        /// </param>
        /// <param name="beginLesson">
        /// The begin lesson.
        /// </param>
        /// <param name="lastLesson">
        /// The last lesson.
        /// </param>
        public Course(long courseId, string name, int weekday, int beginLesson, int lastLesson)
        {
            this.CourseId = courseId;
            this.Name = name;
            this.Weekday = weekday;
            this.BeginLesson = beginLesson;
            this.LastLesson = lastLesson;
        }

        /// <summary>
        /// Gets or sets the course id.
        /// </summary>
        public long CourseId { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the weekday.
        /// </summary>
        public int Weekday { get; set; }

        /// <summary>
        /// Gets or sets the begin lesson.
        /// </summary>
        public int BeginLesson { get; set; }

        /// <summary>
        /// Gets or sets the last lesson.
        /// </summary>
        public int LastLesson { get; set; }
    }
}
